package com.sky.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.vo.DishItemVO;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author 86158
* @description 针对表【dish(菜品)】的数据库操作Mapper
* @createDate 2025-08-17 11:06:29
* @Entity com.sky.pojo.Dish
*/
@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    IPage<Dish> pageDish(IPage<Dish> page1, DishPageQueryDTO dishPageQueryDTO);

    List<DishItemVO> dishList(Long id);

    List<DishVO> listDishByCategoryId(Long categoryId);

    Integer getDishCount(Map map);
}




